﻿namespace YMJake.Flowable.ExternalWorker.Client.Core.Client;

/// <summary>
/// Implementation of IWorkResultBuilder
/// Simplified .NET version - no job parameter needed
/// </summary>
public class WorkResultBuilder : IWorkResultBuilder
{
    public WorkResultBuilder()
    {
    }

    public WorkerResult.Success Success()
    {
        return new WorkerResult.Success();
    }

    public WorkerResult.BpmnError BpmnError()
    {
        return new WorkerResult.BpmnError();
    }

    public WorkerResult.BpmnError BpmnError(string errorCode)
    {
        return new WorkerResult.BpmnError(errorCode);
    }

    public WorkerResult.CmmnTermination CmmnTerminate()
    {
        return new WorkerResult.CmmnTermination();
    }

    public WorkerResult.Failure Failure()
    {
        return new WorkerResult.Failure();
    }
}